package com.example.layautsventana;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class VentanaMenu extends Activity {

	private Button btn_mov;
	private Button btn_trans;
	private TextView txtParam;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ventana_menu);
		android.content.Intent intento=getIntent();
		String cad=intento.getStringExtra("param1").toString();
		txtParam =(android.widget.TextView) findViewById(R.id.v_bienvenida);
		txtParam.setText("Bienvenido "+cad);
		
		/*android.content.Intent intento=getIntent();
		String cad=intento.getStringExtra("param1");
		
		txtParam =(android.widget.TextView) findViewById(R.id.v_bienvenida);
		txtParam.setText("Bienvenido "+cad);*/
	    btn_trans =(android.widget.Button) findViewById(R.id.btn_trans);    
	    btn_trans.setOnClickListener(new android.view.View.OnClickListener() {
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
					android.content.Intent intento=new android.content.Intent(VentanaMenu.this,VentanaTransferenciasActivity.class);
					//intento.putExtra("paramm1",txtParam.getText().toString());
					startActivity(intento);
				
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.ventana_menu, menu);
		return true;
	}

}
